#include "Element_1D.h"
#include <iostream>

int main(int argc, char* argv[])
{
    Point_1 p1(-2.0);
    Point_1 p2(2.0);
    Point_1 p3 = p1;
//    p1(1.0);
    p3(3.0);
//    p2 = p3;
//    std::cout << p1() << " + " << p2() << "=" << (p1 + p2)() << std::endl;

    MeshGrid grid;
    grid.set_global_idx(0, 0);
    grid.set_global_idx(1, 1);
    grid.set_vertices(0, p1);
    grid.set_vertices(1, p2);
    std::cout << grid.get_vertices(0) << " + "
	      << grid.get_vertices(1) << " = "
	      << grid.get_vertices(0) + grid.get_vertices(1) << std::endl;
    return 0;
};
